import axios from 'axios';
import type { ApiResponse } from '../types';

export const request = axios.create({
  baseURL: process.env.API_URL
});

request.interceptors.response.use(
  response => response.data,
  error => Promise.reject(error)
); 